/**   
* @Title: SpiderSeed.java
* @Package org.xaoyaoyao.spider.entity
* @Description: TODO
* @author xaoyaoyao
* @date Jan 25, 2019 1:05:07 PM
* @version V1.0   
*/
package org.xaoyaoyao.spider.entity;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;

import lombok.Data;

/**
 * @ClassName: SpiderSeed
 * @Description: 种子，其模板信息
 * @author xaoyaoyao
 * @date Jan 25, 2019 1:05:07 PM
 * 
 */
@Data
public class SpiderSeed implements Serializable {

	private static final long serialVersionUID = 8195193028861342494L;
	
	private Long id;

	/** 名称 **/
	private String name;

	/** 域 **/
	private String domain;

	/** 模板 **/
	private String template;
	
	/** 状态 **/
	private Integer status;

	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}

	public static SpiderSeed parse(String json) {
		return JSON.parseObject(json, SpiderSeed.class);
	}
}